<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="http://cdn.datatables.net/1.10.15/css/jquery.dataTables.min.css"/>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet"/>
    <script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
    <script src="http://cdn.datatables.net/1.10.15/js/jquery.dataTables.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="../html/js/json2form.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>

</head>
<body>

<div class="col-md-12">
    <div id="hide" class="">
        <div class="bs-example bs-example-tabs"
             data-example-id="togglable-tabs">
            <ul class="nav nav-pills">
                <li role="presentation" class="active"><a
                        href="#browser" id="browserTab"
                        data-toggle="tab"
                        aria-controls="browser"
                        aria-expanded="true">入院详情</a></li>
                <li role="presentation"><a href="#client"
                                           id="clientTab"
                                           data-toggle="tab"
                                           aria-controls="client">计划</a>
                </li>
            </ul>
            <div id="templateUrlTabContent" class="tab-content">
                <div role="tabpanel"
                     class="tab-pane fade in active"
                     id="browser" aria-labelledby="browserTab">
                    <div class="container">

                        <div class="box-body">
                            <form class="form-horizontal">
                                <div class="col-sm-12 ">
                                    <div class="form-group">
                                        <div class="col-sm-2">
                                            <p><label class="control-label ">医院名称:</label></p>
                                            <p><input type="text" id="hospitalNameQuery" name="hospitalName"
                                                      placeholder="医院名称"/></p>
                                        </div>
                                    </div>
                                    <div class="box-footer btn-group pull-left">
                                        <button type="button" class="btn btn-block btn-success " data-toggle="modal" data-target="#hospitalInfoAdd" >
                                            添加医院信息
                                        </button>
                                    </div>
                                    <div class="box-footer btn-group pull-right">
                                        <button type="button" class="btn  btn-primary"
                                                onclick="queryHospital()" >
                                            查询
                                        </button>
                                        <button type="button" class="btn  btn-primary"
                                                onclick="exportHospitalData()" >
                                            导出数据
                                        </button>

                                    </div>
                                </div>
                            </form>
                        </div>
                        <table id="example" class="table table-striped table-bordered dataTable" width="100%">
                        </table>
                        <form id="hospitalExport" method="post"></form>
                    </div>
                </div>

                <div role="tabpanel" class="tab-pane fade"
                     id="client" aria-labelledby="clientTab">

                    <div class="container">

                        <div class="box-body">
                            <form class="form-horizontal" id="queryForm">
                                <div class="col-sm-12 ">
                                    <div class="form-group">
                                        <div class="col-sm-2">
                                            <p><label class="control-label ">医院名称:</label></p>
                                            <p><input type="text" id="hospitalNameAdd" name="hospitalName"
                                                      placeholder="医院名称"/></p>
                                        </div>
                                    </div>
                                    <div class="box-footer btn-group pull-left">
                                        <button type="button" class="btn btn-block btn-success " data-toggle="modal" data-target="#addHospitalVisitInfo" >
                                            添加访问记录
                                        </button>
                                    </div>

                                    <div class="box-footer btn-group pull-right">
                                        <button type="button" class="btn  btn-primary"
                                                onclick="queryVisit()" >
                                            查询
                                        </button>
                                        <button type="button" class="btn  btn-primary"
                                                onclick="exportHospitalVisitData()" >
                                            导出数据
                                        </button>

                                    </div>
                                </div>
                            </form>
                        </div>


                        <table id="example2" class="table table-striped table-bordered dataTable" width="100%">
                        </table>

                        <form id="hospitalVisitExport" method="post"></form>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>


<div class="modal fade" id="hospitalInfo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <div class="box-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">修改信息</h3>
                            <form class="form-horizontal" id="hospitalForm">
                                <div class="form-group">
                                    <input type="hidden" class="col-sm-10" id="hosId" name="id">
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">省:</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="province"
                                               name="province" placeholder="省" disabled>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">市:</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="city" name="city"
                                               placeholder="市" disabled>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">医院:</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="hospitalName"
                                               name="hospitalName" placeholder="医院" disabled>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">地址：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="address" name="address"
                                               placeholder="地址" disabled>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <span class="col-sm-3 control-label">邮政编码：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="postOfficeCode"
                                               name="postOfficeCode" placeholder="邮政编码" disabled>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">电话：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="phoneNumber"
                                               name="phoneNumber" placeholder="电话" disabled>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">院长：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="deanName"
                                               name="deanName" placeholder="院长" disabled>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">床位数：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="bedNum"
                                               name="bedNum" placeholder="床位数" disabled>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">等级：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="level"
                                               name="level" placeholder="等级" disabled>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">销售：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="saleName"
                                               name="saleName" placeholder="销售" disabled>
                                    </div>
                                </div>
                            </form>
                            <form class="form-horizontal">
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">代理商一：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="operatorOne"
                                               name="operatorOne" placeholder="代理商一">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">代理商二：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="operatorTwo"
                                               name="operatorTwo" placeholder="代理商二">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">代理商三：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="operatorThree"
                                               name="operatorThree" placeholder="代理商三">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">代理商四：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="operatorFour"
                                               name="operatorFour" placeholder="代理商四">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">主任姓名：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="directorName"
                                               name="directorName" placeholder="主任姓名">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">目前医院使用产品：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="currentUserProduct"
                                               name="currentUserProduct" placeholder="目前医院使用产品">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">提单：</span>
                                    <div class="col-sm-7">
                                        <select type="text" class="form-control" id="carryBill"
                                                placeholder="提单">
                                            <option value="未执行">未执行</option>
                                            <option value="已落实">已落实</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">招标：</span>
                                    <div class="col-sm-7">
                                        <select type="text" class="form-control" id="tender"
                                                name="tender" placeholder="招标">
                                            <option value="未执行">未执行</option>
                                            <option value="已落实">已落实</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">物价：</span>
                                    <div class="col-sm-7">
                                        <select type="text" class="form-control" id="thingsPrice"
                                                name="thingsPrice" placeholder="物价">
                                            <option value="未执行">未执行</option>
                                            <option value="已落实">已落实</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">回款：</span>
                                    <div class="col-sm-7">
                                        <select type="text" class="form-control" id="repayment"
                                                name="repayment" placeholder="回款">
                                            <option value="未执行">未执行</option>
                                            <option value="已落实">已落实</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">主机装机进院：</span>
                                    <div class="col-sm-7">
                                        <select type="text" class="form-control" id="installInto"
                                                name="installInto" placeholder="提单">
                                            <option value="未执行">未执行</option>
                                            <option value="已落实">已落实</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">耗材循环使用：</span>
                                    <div class="col-sm-7">
                                        <select type="text" class="form-control" id="cycleUse"
                                                name="cycleUse" placeholder="耗材循环使用">
                                            <option value="未执行">未执行</option>
                                            <option value="已落实">已落实</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">备注：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="note"
                                               name="note" placeholder="备注">
                                    </div>
                                </div>

                            </form>
                        </div>
                        <div class="box-footer">
                            <button type="button" class="btn  btn-primary pull-right" onclick="updateOperatorInfo()"
                                    data-privilegeId="updateOperatorInfo">
                                修改
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<div class="modal fade" id="hospitalInfoAdd" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <div class="box-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">添加医院信息</h3>
                            <form class="form-horizontal" id="hospitalAddForm">
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">省:</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="province4"
                                               name="province" placeholder="省" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">市:</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="city4" name="city"
                                               placeholder="市" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">医院:</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="hospitalName4"
                                               name="hospitalName" placeholder="医院" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">地址：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="address4" name="address"
                                               placeholder="地址" >
                                    </div>
                                </div>

                                <div class="form-group">
                                    <span class="col-sm-3 control-label">邮政编码：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="postOfficeCode4"
                                               name="postOfficeCode" placeholder="邮政编码" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">电话：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="phoneNumber4"
                                               name="phoneNumber" placeholder="电话" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">院长：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="deanName4"
                                               name="deanName" placeholder="院长" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">床位数：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="bedNum4"
                                               name="bedNum" placeholder="床位数" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">等级：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="level4"
                                               name="level" placeholder="等级" >
                                    </div>
                                </div>
                            </form>
                            <form class="form-horizontal">
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">代理商一：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="operatorOne4"
                                               name="operatorOne" placeholder="代理商一">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">代理商二：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="operatorTwo4"
                                               name="operatorTwo" placeholder="代理商二">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">代理商三：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="operatorThree4"
                                               name="operatorThree" placeholder="代理商三">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">代理商四：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="operatorFour4"
                                               name="operatorFour" placeholder="代理商四">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">主任姓名：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="directorName"
                                               name="directorName" placeholder="主任姓名">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">目前医院使用产品：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="currentUserProduct"
                                               name="currentUserProduct" placeholder="目前医院使用产品">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">提单：</span>
                                    <div class="col-sm-7">
                                        <select type="text" class="form-control" id="carryBill4"
                                                placeholder="提单">
                                            <option value="未执行">未执行</option>
                                            <option value="已落实">已落实</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">招标：</span>
                                    <div class="col-sm-7">
                                        <select type="text" class="form-control" id="tender4"
                                                name="tender" placeholder="招标">
                                            <option value="未执行">未执行</option>
                                            <option value="已落实">已落实</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">物价：</span>
                                    <div class="col-sm-7">
                                        <select type="text" class="form-control" id="thingsPrice4"
                                                name="thingsPrice" placeholder="物价">
                                            <option value="未执行">未执行</option>
                                            <option value="已落实">已落实</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">回款：</span>
                                    <div class="col-sm-7">
                                        <select type="text" class="form-control" id="repayment4"
                                                name="repayment" placeholder="回款">
                                            <option value="未执行">未执行</option>
                                            <option value="已落实">已落实</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">主机装机进院：</span>
                                    <div class="col-sm-7">
                                        <select type="text" class="form-control" id="installInto4"
                                                name="installInto" placeholder="提单">
                                            <option value="未执行">未执行</option>
                                            <option value="已落实">已落实</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">耗材循环使用：</span>
                                    <div class="col-sm-7">
                                        <select type="text" class="form-control" id="cycleUse4"
                                                name="cycleUse" placeholder="耗材循环使用">
                                            <option value="未执行">未执行</option>
                                            <option value="已落实">已落实</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">备注：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="note4"
                                               name="note" placeholder="备注">
                                    </div>
                                </div>

                            </form>
                        </div>
                        <div class="box-footer">
                            <button type="button" class="btn  btn-primary pull-right" onclick="addHospitalInfo()">
                                添加
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



<div class="modal fade" id="hospitalVisitInfo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
         aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <div class="box-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                            &times;
                        </button>
                        <div class="box box-primary">
                            <div class="box-header with-border">
                                <h3 class="box-title">修改信息</h3>
                                <form class="form-horizontal" id="hospitalVisitForm">
                                    <div class="form-group">
                                        <input type="hidden" class="col-sm-10" id="visitId" name="id">
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">日期:</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="createTime"
                                                   name="createTime" placeholder="日期" disabled>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">省:</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="province2"
                                                   name="province" placeholder="省" >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">市:</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="city2" name="city"
                                                   placeholder="市" >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">医院名称:</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="hospitalName2"
                                                   name="hospitalName" placeholder="医院名称" >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">医院类别：</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="hospitalType" name="hospitalType"
                                                   placeholder="医院类别" >
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">科室：</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="department"
                                                   name="department" placeholder="科室" >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">行政主任：</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="director"
                                                   name="director" placeholder="行政主任" >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">行政主任联系方式：</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="directorPhone"
                                                   name="directorPhone" placeholder="行政主任联系方式" >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">经销商名称：</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="dealName"
                                                   name="dealName" placeholder="经销商名称" >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">经销商实际控制人：</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="dealerControlName"
                                                   name="dealerControlName" placeholder="经销商实际控制人" >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">经销商实际控制人联系方式：</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="dealerControlPhone"
                                                   name="dealerControlPhone" placeholder="经销商实际控制人联系方式" >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">经销商实际操作人：</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="dealerOperatorName"
                                                   name="dealerOperatorName" placeholder="经销商实际操作人">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">经销商实际操作人电话：</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="dealerOperatorPhone"
                                                   name="dealerOperatorPhone" placeholder="经销商实际操作人电话">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">经销商实际操作人当前在科室销售产品：</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="saleProduct"
                                                   name="saleProduct" placeholder="经销商实际操作人当前在科室销售产品">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">拜访计划：</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="visitPlan"
                                                   name="visitPlan" placeholder="拜访计划">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">拜访结果：</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="visitResult"
                                                   name="visitResult" placeholder="拜访结果">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <span class="col-sm-3 control-label">行动计划：</span>
                                        <div class="col-sm-7">
                                            <input type="text" class="form-control" id="actionPlan"
                                                   name="actionPlan" placeholder="行动计划">
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <div class="box-footer">
                                <button type="button" class="btn  btn-primary pull-right" onclick="updateHospitalVisit()">
                                    修改
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


<div class="modal fade" id="addHospitalVisitInfo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <div class="box-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">添加</h3>
                            <form class="form-horizontal" id="addHospitalVisitForm">

                                <div class="form-group">
                                    <span class="col-sm-3 control-label">省:</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="province3"
                                               name="province" placeholder="省" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">市:</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="city3" name="city"
                                               placeholder="市" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">医院名称:</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="hospitalName3"
                                               name="hospitalName" placeholder="医院名称" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">医院类别：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="hospitalType3" name="hospitalType"
                                               placeholder="医院类别" >
                                    </div>
                                </div>

                                <div class="form-group">
                                    <span class="col-sm-3 control-label">科室：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="department3"
                                               name="department" placeholder="科室" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">行政主任：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="director3"
                                               name="director" placeholder="行政主任" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">行政主任联系方式：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="directorPhone3"
                                               name="directorPhone" placeholder="行政主任联系方式" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">经销商名称：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="dealName3"
                                               name="dealName" placeholder="经销商名称" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">经销商实际控制人：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="dealerControlName3"
                                               name="dealerControlName" placeholder="经销商实际控制人" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">经销商实际控制人联系方式：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="dealerControlPhone3"
                                               name="dealerControlPhone" placeholder="经销商实际控制人联系方式" >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">经销商实际操作人：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="dealerOperatorName3"
                                               name="dealerOperatorName" placeholder="经销商实际操作人">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">经销商实际操作人电话：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="dealerOperatorPhone3"
                                               name="dealerOperatorPhone" placeholder="经销商实际操作人电话">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">经销商实际操作人当前在科室销售产品：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="saleProduct3"
                                               name="saleProduct" placeholder="经销商实际操作人当前在科室销售产品">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">拜访计划：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="visitPlan3"
                                               name="visitPlan" placeholder="拜访计划">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">拜访结果：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="visitResult3"
                                               name="visitResult" placeholder="拜访结果">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <span class="col-sm-3 control-label">行动计划：</span>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="actionPlan3"
                                               name="actionPlan" placeholder="行动计划">
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div class="box-footer">
                            <button type="button" class="btn  btn-primary pull-right" onclick="saveHospitalVisitInfo()">
                                添加
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


</body>
</html>
<script src="../html/js/index.js"></script>